![]() | Methodology for Using Text Processing | Define Attribute Objects of Message | ![]() |
Knowledge Builder supports Text Processing via the TextProcessor Object Base Class. One or more Objects can be used to define how the runtime values of knowledge Objects (Attributes) can be recognised in a free text message.
The basic development approach is to:
a) Define Attributes of message.
b) For each Attribute define a corresponding set of 'phrases'.
c) Increase the pattern matching power of these Phrases by:
i.) Using word stemming (by default)
ii) Using word/phrase Synonyms.
iii) Including one or more 'wild-card' words in Phrases.
iv) Using key-word combinations.
v) Using the match similar spellings option
At runtime an input 'message' is assigned to the TextProcessor Object through its 'text' property allowing matching of the phrases to be performed using the '@Do' command to determine which Attributes values are present within the message.
@Assign myTextProcessorObject.text = messagetxt
@Do myTextProcessorObject
Define Attribute Objects of Message